import { defineStore } from "pinia";
import { storeHome } from "../types/home";

export const useHomeStore = defineStore("index", {
  state: () => {
    return {
      count: 0,
      status: false,
    };
  },
  getters: {
    curCount() {
      return this.count;
    },
    curStatus() {
      return this.status;
    },
  },
  actions: {
    updatecount(val) {
      this.count = val;
    },
    changeStatus(val) {
      this.status = val;
    },
  },
});
